﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="BudgetMng.aspx.cs" Inherits="BudgetSet.BudgetMng" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <script type="text/javascript" language="javascript"></script>
    <script src="../../js/jquery.js" type="text/javascript"></script>
    <script src="../../js/common.js" type="text/javascript"></script>
    <script type="text/javascript" src="../../js/My97DatePicker/WdatePicker.js"></script>
    <title></title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <link href="CSS/reportCss.css" rel="stylesheet" type="text/css" />
    <style>
    .td-label2
    {
	    text-align: right !important;
	    background-color: #f5f5f5;
    }
    </style>  
</head>
<body>     
    <script type="text/javascript" language="javascript">
        $(document).ready(function () {
            var IsPostBack = "<%= IsPostBack%>";
            //第一次加载要执行的东西    
            if (IsPostBack == "False") {
                $("#divExpenseList").css("display", "none");
                $("#divCapexList").css("display", "none");
                if (document.getElementById("RadioExpense").checked) {
                    document.getElementById("hf_Filter").value = document.getElementById("RadioExpense").value;
                } else {
                    document.getElementById("hf_Filter").value = document.getElementById("RadioCapex").value;
                }
            }
            //非第一次加载要执行的东西    
            else {
                //if ($("#hf_Filter").value == "E") { //这么写报错Undefine  待学习
                if (document.getElementById("hf_Filter").value == "E") {
                    $("#divExpenseList").css("display", "block");
                    $("#divCapexList").css("display", "none");
                } else {
                    $("#divExpenseList").css("display", "none");
                    $("#divCapexList").css("display", "block");
                }
            }
        });
        function ChooseBudgetType(e) {
            document.getElementById("hf_Filter").value = e;
        }

        function GetSelectedID() {
            var r, a;
            a = 0;
            document.getElementById("hf_SelectedID").value = "";
            if (document.getElementById("hf_Filter").value == "E") {
                r= document.getElementsByName("cb_SelectE");
            } 
            else {
                r= document.getElementsByName("cb_SelectC");
            }
                
            for (var i = 0; i < r.length; i++)
            {
                if (r[i].checked) {
                    if (document.getElementById("hf_SelectedID").value == "") {
                        document.getElementById("hf_SelectedID").value = r[i].value;
                        a = 1;
                    } else {
                        document.getElementById("hf_SelectedID").value = document.getElementById("hf_SelectedID").value + "," + r[i].value;
                        a = a + 1;
                    }
                }

            }
            return a;
        }

        function selectAll(f, mode) {
            if (mode == true) {
                for (i = 0; i < f.length; i++) {
                    if (f.elements[i].type == "checkbox") {
                        f.elements[i].checked = true;
                    }
                }
            }
            else {
                for (i = 0; i < f.length; i++) {
                    if (f.elements[i].type == "checkbox") {
                        f.elements[i].checked = false;
                    }
                }
            }
        }

        //选择弹出页面
        function openNewBudgetPage() {
                window.open("NewBudget.aspx", null, "scrollbars=yes, resizable=yes, toolbar=no, menubar=no, location=no, directories=no,width=1000,height=600,top=20,left=50");
        }
        //编辑页面
        function openModifyBudgetPage() {
            var selectNum = GetSelectedID();
            var ID = document.getElementById("hf_SelectedID").value;
            if (selectNum == 1) {
                window.open("ModifyBudget.aspx?ID=" + ID, null, "scrollbars=yes, resizable=yes, toolbar=no, menubar=no, location=no, directories=no,width=1000,height=600,top=20,left=50");
            } else { 
            }
        }
    </script>  
    <form id="form1" runat="server">
    <div style=" padding-left:210px ">
        <table>
            <tr>
                <td rowspan="3" width="150">
                    <asp:Image ID="Image2" runat="server" ImageUrl="../../images/vastlogo.png" Visible="true" />
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td style="text-align: center; padding-top: 10px;">
                    <span style="font-weight: bold; font-size: 20px">Budget Management Background Maintenance<br />
                        <br />
                        预算管理后台维护 </span>
                </td>
                <td>
                </td>
            </tr>
        </table>
        </div>
        <div id="divCondition" runat="server" class="div_default_condition" style="padding-top: 10px">
            <table class="table table-condensed table-bordered">
                <tr>
                    <td class="banner" colspan="4">
                        Search Condition/查询条件
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        Budget Type/预算类型:<span class="red">*</span>
                    </td>
                    <td class="td-content"colspan="3"> 
                        <input id="RadioExpense" type="radio" name="CheckType" value="E" runat="server" checked="true" onclick="ChooseBudgetType(this.value)" />Expense/费用类
                        &nbsp;&nbsp;&nbsp;&nbsp;
                        <input id="RadioCapex" type="radio" name="CheckType" value="C" runat="server" onclick="ChooseBudgetType(this.value)" />Capex/固定资产类
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        Budget Number/预算编号
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="flt_BudgetCode" CssClass="input-query" runat="server"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        Company/公司
                    </td>
                    <td class="td-content">
                        <asp:DropDownList ID="flt_COMPANY" runat="server" CssClass="validate[required]">
                            <asp:ListItem Selected="True"></asp:ListItem>
                            <asp:ListItem>伟速达（中国）汽车安全系统有限公司</asp:ListItem>
                            <asp:ListItem>伟速达（福州）汽车安全系统有限公司</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        Department/部门
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="flt_Department" CssClass="input-query" runat="server"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        Cost Center/成本中心
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="flt_CostCenter" CssClass="input-query" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        Start Time/开始时间
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="flt_STARTDATE" CssClass="input-query" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy/MM/dd'})"
                            runat="server"></asp:TextBox>
                    </td>
                    <td class="td-label">
                        End Time/结束时间
                    </td>
                    <td class="td-content">
                        <asp:TextBox ID="flt_ENDDATE" CssClass="input-query" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy/MM/dd'})"
                            runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td class="td-label">
                        Project Number/项目编号
                    </td>
                    <td class="td-content">
                       <asp:TextBox ID="fld_ITEMSCODE"  runat="server" />
                    </td>
                </tr>                 
            </table>
            <div align="center">
                <asp:Button ID="btnQuery" runat="server" CausesValidation="false" CssClass="btn"
                    Text="Search/查询" OnClick="btnQueryt_Click" />
                <asp:Button ID="btnExport" runat="server" CausesValidation="false" CssClass="btn"
                    Text="Export/导出" OnClick="btnExport_Click" />
            </div>            
            <div>
                <asp:FileUpload ID="Upfile" runat="server" CssClass="btn" Width="500px"/>
                <asp:Button ID="btnImport" runat="server" CausesValidation="false" CssClass="btn"
                    Text="Import/导入" OnClick="btnImport_Click" />
                <span class="red">导入的Excel文件需遵照以下规则：1.列标题严格按照模板 2.必填字段不要为空 3.不能出现空行 4.不能出现空列</span>
            </div>
            <br />
            <div>
                <asp:Button ID="btnAdd" runat="server" Text="Add/增加" CssClass="btn" CausesValidation="false"
                    OnClientClick="openNewBudgetPage();" />
                <asp:Button ID="btnModify" runat="server" Text="Modify/修改" CssClass="btn" CausesValidation="false"
                    OnClientClick="openModifyBudgetPage();"/>
                <asp:Button ID="btnBatchDelete" runat="server" Text="Batch Delete/批量删除" CssClass="btn" CausesValidation="false"
                    OnClick="btnBatchDelete_Click" />
                    &nbsp;&nbsp;&nbsp;&nbsp;
                <span >
                    <asp:LinkButton ID="lbtnDownloadExpenseTemplate" runat="server" Text="Download Expense Template/下载Expense模板"
                        OnClick="DownloadExpenseTemplate_Click"></asp:LinkButton>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:LinkButton ID="lbtnDownloadCapexTemplate" runat="server" Text="Download Capex Template/下载Capex模板"
                        OnClick="DownloadCapexTemplate_Click"></asp:LinkButton>
                </span>
                <br />
            </div>
        </div>
        <div id="divExpenseList">
            <table id="table_ExpenseList" width="100%" cellspacing="1" cellpadding="5" style="margin-left: 2px"
                border="1" bordercolor="#ccc">
                <tr>
                    <th style="width: 5%">
                        全选<input type="checkbox" name="cb_SelectAll" onclick="selectAll(this.form,this.checked);" />    
                    </th>
                    <th id="lbl_Delete" style="width: 2%">
                        Delete/<br />
                        删除
                    </th>
                    <th id="tbl_Department" style="width: 10%">
                        Budget Department/<br />
                        预算部门
                    </th>
                    <th id="tbl_BudgetType" style="width: 10%">
                        Budget Type/<br />
                        预算类型
                    </th>
                    <th id="tbl_BudgetCode" style="width: 10%">
                        Budget Code/<br />
                        预算编号
                    </th>
                    <th id="tbl_ItemsCode" style="width: 10%">
                        Budget Number/<br />
                        项目代码
                    </th>
                    <th id="tbl_ItemsDesc" style="width: 10%">
                        Expense Items/<br />
                        项目描述
                    </th>
                    <th id="tbl_CostCenter" style="width: 10%">
                        Cost Center/<br />
                        成本中心代码
                    </th>
                    <th id="tbl_CostCenterName" style="width: 10%">
                        Cost Center Name/<br />
                        成本中心名称
                    </th>
                    <th style="width: 10%">
                        Account Code/<br />
                        账户代码
                    </th>
                    <th style="width: 10%">
                        Account Description/<br />
                        账户描述
                    </th>
                    <th style="width: 10%">
                        Detailed Account Code/<br />
                        明细账户代码
                    </th>
                    <th style="width: 10%">
                        Detail Account Description/<br />
                        明细账户描述
                    </th>
                    <th style="width: 10%">
                        Reasons/<br />
                        原因
                    </th>
                    <th style="width: 10%">
                        Description/<br />
                        描述
                    </th>
                    <th style="width: 10%">
                        Amount/<br />
                        预算金额
                    </th>
                    <th style="width: 10%">
                        PRBalance/<br />
                        PR已用金额
                    </th>
                    <th style="width: 10%">
                        POBalance/<br />
                        PO已用金额
                    </th>
                    <th style="width: 10%">
                        Start Time/<br />
                        开始时间
                    </th>
                    <th style="width: 10%">
                        End Time/<br />
                        结束时间
                    </th>
                </tr>
                <tbody>       
                <asp:Repeater ID="rp_ExpenseList" runat="server" OnItemCommand="btnDelete_Click">
                    <ItemTemplate>
                        <tr onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#F3F3F3';"
                            onmouseout="this.style.backgroundColor=currentcolor;" style='background-color: <%# (Container.ItemIndex + 1)%2==0?"#F9F9F9":"" %>;
                            cursor: pointer;'>                                                    
                            <td>
                                <input id="cb_SelectE" name="cb_SelectE" type="checkbox" value="<%#Eval("ID") %>" />
                            </td>
                            <td  style=" text-align:center">
                                <%--<asp:Button ID="btnDelete" runat="server" Text="删除" CssClass="btn" CommandName=<%#Eval("ID") %>
                                    ClientIDMode="Static" OnClientClick="return confirm('确认删除？')" />--%>
                                    <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="../../images/del.gif" CommandName=<%#Eval("ID") %>   ClientIDMode="Static"  
                                    OnClientClick="return confirm('确认删除？')" ToolTip="删除该行数据" /> 
                            </td>                            
                            <td>
                                <asp:Label ID="fld_DEPARTMENT" Text='<%#Eval("DEPARTMENT") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_BUDGETTYPE" Text='<%#Eval("BUDGETTYPE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_BUDGETCODE" Text='<%#Eval("BUDGETCODE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_ITEMSCODE" Text='<%#Eval("ITEMSCODE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_ITEMSDESC" Text='<%#Eval("ITEMSDESC") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_COSTCENTER" Text='<%#Eval("COSTCENTER") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_COSTCENTERNAME" Text='<%#Eval("COSTCENTERNAME") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_ACCOUNTCODE" Text='<%#Eval("ACCOUNTCODE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_ACCOUNTDESC" Text='<%#Eval("ACCOUNTDESC") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>   
                            <td>
                                <asp:Label ID="fld_DETAILACCOUNTCODE" Text='<%#Eval("DETAILACCOUNTCODE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>   
                            <td>
                                <asp:Label ID="fld_DETAILACCOUNTDESC" Text='<%#Eval("DETAILACCOUNTDESC") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>  
                            <td>
                                <asp:Label ID="fld_REASONS" Text='<%#Eval("REASONS") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>   
                            <td>
                                <asp:Label ID="fld_DESCRIPTION" Text='<%#Eval("DESCRIPTION") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_AMOUNT" Text='<%#Eval("AMOUNT") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>   
                            <td>
                                <asp:Label ID="fld_PRBALANCE" Text='<%#Eval("PRBALANCE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>    
                            <td>
                                <asp:Label ID="fld_POBALANCE" Text='<%#Eval("POBALANCE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>    
                            <td>
                                <asp:Label ID="fld_STARTTIME" Text='<%# DateTime.Parse(Eval("STARTTIME").ToString()).ToString("yyyy-MM-dd")%>' runat="server" Width="85%"></asp:Label>
                            </td>  
                            <td>
                                <asp:Label ID="fld_ENDTIME" Text='<%# DateTime.Parse(Eval("ENDTIME").ToString()).ToString("yyyy-MM-dd")%>' runat="server" Width="85%" ></asp:Label>
                            </td> 
                        </tr>
                    </ItemTemplate>
                </asp:Repeater> 
                </tbody>
                <tr>
                    <td colspan="20" style="text-align: left; padding: 5px;">
                        <webdiyer:AspNetPager ID="AspNetPagerExpense" runat="server" CustomInfoHTML="Count %RecordCount%"
                            HorizontalAlign="left" Width="100%" CssClass="aspNetPager" OnPageChanged="AspNetPagerExpense_PageChanged"
                            PageSize="10" AlwaysShow="true" SubmitButtonStyle="display:none" InputBoxStyle="display:none"
                            NextPageText="下一页" FirstPageText="E首页" LastPageText="末页" PrevPageText="上一页">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
        </div>
        <div id="divCapexList">
            <table id="table_CapexList" width="100%" cellspacing="1" cellpadding="5" style="margin-left: 2px"
                border="1" bordercolor="#ccc" datapagesize="100">
                <tr>
                    <th style="width: 5%">
                        全选<input type="checkbox" name="cb_SelectAll" onclick="selectAll(this.form,this.checked);" />    
                    </th>
                    <th id="Th1" style="width: 10%">
                        Delete/<br />
                        删除
                    </th>
                    <th style="width: 10%">
                        Budget Department/<br />
                        预算部门
                    </th>
                    <th style="width: 10%">
                        Budget Type/<br />
                        预算类型
                    </th>
                    <th style="width: 10%">
                        Budget Code/<br />
                        预算编号
                    </th>
                    <th style="width: 10%">
                        Budget Number/<br />
                        项目代码
                    </th>
                    <th style="width: 10%">
                        Expense Items/<br />
                        项目描述
                    </th>
                    <th style="width: 10%">
                        Cost Center/<br />
                        成本中心
                    </th>
                    <th style="width: 10%">
                        Cost Center Name/<br />
                        成本中心名称
                    </th>
                    <th style="width: 10%">
                        Cost Category/<br />
                        成本类别1
                    </th>
                    <th style="width: 10%">
                        Cost Category/<br />
                        成本类别2
                    </th>
                    <th style="width: 10%">
                        Reasons/<br />
                        原因
                    </th>
                    <th style="width: 10%">
                        Description/<br />
                        描述
                    </th>
                    <th style="width: 10%">
                        Owner/<br />
                        拥有者
                    </th>
                    <th style="width: 10%">
                        Life/<br />
                        折旧年限
                    </th>
                    <th style="width: 10%">
                        Qty/<br />
                        数量
                    </th>
                    <th style="width: 10%">
                        Description/<br />
                        预算金额
                    </th>
                    <th style="width: 10%">
                        CapexBalance/<br />
                        Capex已用金额
                    </th>
                   <%-- <th style="width: 10%">
                        DH/<br />
                        ?
                    </th>
                    <th style="width: 10%">
                        Reclass/<br />
                        ?
                    </th>--%>
                    <th style="width: 10%">
                        Start Time/<br />
                        开始时间
                    </th>
                    <th style="width: 10%">
                        End Time/<br />
                        结束时间
                    </th>
                </tr>
                <tbody>            
                <asp:Repeater ID="rp_CapexList" runat="server" OnItemCommand="btnDelete_Click">
                    <ItemTemplate>
                        <tr onmouseover="currentcolor=this.style.backgroundColor;this.style.backgroundColor='#F3F3F3';"
                            onmouseout="this.style.backgroundColor=currentcolor;" style='background-color: <%# (Container.ItemIndex + 1)%2==0?"#F9F9F9":"" %>;
                            cursor: pointer;'>                                                  
                            <td>
                                <input id="cb_SelectC" name="cb_SelectC" type="checkbox" value="<%#Eval("ID") %>""/>
                            </td> 
                            <td  style=" text-align:center">
                                <%--<asp:Button ID="btnDelete" runat="server" Text="删除" CssClass="btn" CommandName=<%#Eval("ID") %>
                                    ClientIDMode="Static" OnClientClick="return confirm('确认删除？')" />--%>
                                <asp:ImageButton ID="btnDelete" runat="server" ImageUrl="../../images/del.gif" CommandName=<%#Eval("ID") %>   ClientIDMode="Static"  
                                    OnClientClick="return confirm('确认删除？')" ToolTip="删除该行数据" /> 
                            </td>
                            <td>
                                <asp:Label ID="fld_DEPARTMENT" Text='<%#Eval("DEPARTMENT") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_BUDGETTYPE" Text='<%#Eval("BUDGETTYPE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_BUDGETCODE" Text='<%#Eval("BUDGETCODE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_ITEMSCODE" Text='<%#Eval("ITEMSCODE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_ITEMSDESC" Text='<%#Eval("ITEMSDESC") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_COSTCENTER" Text='<%#Eval("COSTCENTER") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_COSTCENTERNAME" Text='<%#Eval("COSTCENTERNAME") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_COSTCATEGORY1" Text='<%#Eval("COSTCATEGORY1") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_COSTCATEGORY2" Text='<%#Eval("COSTCATEGORY2") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>
                            <td>
                                <asp:Label ID="fld_REASONS" Text='<%#Eval("REASONS") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>   
                            <td>
                                <asp:Label ID="fld_DESCRIPTION" Text='<%#Eval("DESCRIPTION") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>   
                            <td>
                                <asp:Label ID="fld_OWNER" Text='<%#Eval("OWNER") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>   
                            <td>
                                <asp:Label ID="fld_LIFE" Text='<%#Eval("LIFE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>      
                            <td>
                                <asp:Label ID="fld_QTY" Text='<%#Eval("QTY") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>  
                            <td>
                                <asp:Label ID="fld_AMOUNT" Text='<%#Eval("AMOUNT") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>   
                            <td>
                                <asp:Label ID="fld_CAPEXBALANCE" Text='<%#Eval("CAPEXBALANCE") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>  
                           <%-- <td>
                                <asp:Label ID="fld_DH" Text='<%#Eval("DH") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>    
                            <td>
                                <asp:Label ID="fld_RECLASS" Text='<%#Eval("RECLASS") %>' runat="server" Width="85%"
                                    CssClass="validate[required]"></asp:Label>
                            </td>  --%> 
                             <td>
                                <asp:Label ID="fld_STARTTIME" Text='<%# DateTime.Parse(Eval("STARTTIME").ToString()).ToString("yyyy-MM-dd")%>' runat="server" Width="85%"></asp:Label>
                            </td>  
                            <td>
                                <asp:Label ID="fld_ENDTIME" Text='<%# DateTime.Parse(Eval("ENDTIME").ToString()).ToString("yyyy-MM-dd")%>' runat="server" Width="85%" ></asp:Label>
                            </td> 
                        </tr>
                    </ItemTemplate>
                </asp:Repeater> 
                </tbody>
                
                <tr>
                    <td colspan="22" style="text-align: left; padding: 5px;">
                        <webdiyer:AspNetPager ID="AspNetPagerCapex" runat="server" CustomInfoHTML="Count %RecordCount%"
                            HorizontalAlign="left" Width="100%" CssClass="aspNetPager" OnPageChanged="AspNetPagerExpense_PageChanged"
                            PageSize="10" AlwaysShow="true" SubmitButtonStyle="display:none" InputBoxStyle="display:none"
                            NextPageText="下一页" FirstPageText="C首页" LastPageText="末页" PrevPageText="上一页">
                        </webdiyer:AspNetPager>
                    </td>
                </tr>
            </table>
        </div>
        <div>
          <%--  <asp:HiddenField ID="hf_Filter" runat="server" />--%>
          <input id="hf_Filter" runat="server" type="hidden" />
          <input id="hf_SelectedID" runat="server" type="hidden" />
          <input id="hf_FileName" runat="server" type="hidden" />
          <asp:Button ID="Button1" runat="server" Text="测试接口方法QueryBudgetByBudgetCode" 
                onclick="Button1Click" Visible="False"/>
          <asp:Button ID="Button2" runat="server" Text="测试接口方法UpdateBalaceFromPR" onclick="Button2Click" Visible="False"/>
          <asp:Button ID="Button3" runat="server" Text="测试接口方法UpdateBalaceFromPO" onclick="Button3Click" Visible="False"/>
          <asp:Button ID="Button4" runat="server" Text="测试接口方法UpdateBalaceFromCAPEX" onclick="Button4Click" Visible="False"/>

        </div>
    </form>
</body>
</html>
